package learn_design_patterns.c1.ducks;

import learn_design_patterns.c1.Duck;
import learn_design_patterns.c1.behaviors.fly.FlyNoWay;
import learn_design_patterns.c1.behaviors.quack.MuteQuack;

/**
 * 诱饵鸭，木头做的假鸭，不会叫，不会飞
 * 
 * @author zhangchen
 *
 */
public class DecoyDuck extends Duck {

	public DecoyDuck() {
		flyBehavior = new FlyNoWay();
		quackBehavior = new MuteQuack();
	}

	@Override
	public void display() {
		System.out.println("I'm a decoy duck");
	}

}
